<template>
  <div>
    <router-view></router-view>
    <div class="nav">
      <van-tabbar v-model="active" active-color="#ee0a24">
        <van-tabbar-item icon="fire-o" to="/layout/article/recommend"
          >面经</van-tabbar-item
        >
        <van-tabbar-item icon="star-o" to="/layout/collect"
          >收藏</van-tabbar-item
        >
        <van-tabbar-item icon="like-o" to="/layout/like">点赞</van-tabbar-item>
        <van-tabbar-item icon="manager-o" to="/layout/user"
          >我的</van-tabbar-item
        >
      </van-tabbar>
    </div>
  </div>
</template>

<script>
export default {
  name: "HmLayout",
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang="less" scoped>
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #fff;
  box-shadow: 0 0 10px #ccc;
  z-index: 999;
}
</style>
